"""
__author__ = '霍格沃兹测试开发学社'
__desc__ = '更多测试开发技术探讨，请访问：https://ceshiren.com/t/topic/15860'
"""
from backstage_management.api.base_api import BaseApi


class Cart(BaseApi):
    def fastadd(self, goods_id, product_id):
        path = "/wx/cart/fastadd"
        cart_data = {"goodsId": goods_id, "number": 1, "productId": product_id}
        return self.send("post", path, json=cart_data)
